package com.youzu.information.common.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chglee
 * @email wanghd@yoozoo.com
 * @date 2017-09-25 15:09:21
 */
@Getter
@Setter
@ToString(callSuper=true, includeFieldNames=true)
public class TaskDO implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
    // cron表达式
    private String cronExpression;
    // 任务调用的方法名
    private String methodName;
    // 任务是否有状态
    private String isConcurrent;
    // 任务描述
    private String description;
    // 更新者
    private String updateBy;
    // 任务执行时调用哪个类的方法 包名+类名
    private String beanClass;
    // 创建时间
    private Date createDate;
    // 任务状态
    private String jobStatus;
    // 任务分组
    private String jobGroup;
    // 更新时间
    private Date updateDate;
    // 创建者
    private String createBy;
    // Spring bean
    private String springBean;
    // 任务名
    private String jobName;


//    @Override
//    public String toString() {
//        return "TaskDO{" +
//                "id=" + id +
//                ", cronExpression='" + cronExpression + '\'' +
//                ", methodName='" + methodName + '\'' +
//                ", isConcurrent='" + isConcurrent + '\'' +
//                ", description='" + description + '\'' +
//                ", updateBy='" + updateBy + '\'' +
//                ", beanClass='" + beanClass + '\'' +
//                ", createDate=" + createDate +
//                ", jobStatus='" + jobStatus + '\'' +
//                ", jobGroup='" + jobGroup + '\'' +
//                ", updateDate=" + updateDate +
//                ", createBy='" + createBy + '\'' +
//                ", springBean='" + springBean + '\'' +
//                ", jobName='" + jobName + '\'' +
//                '}';
//    }
}
